import { createReducer } from './util';
import * as ServiceAction from '../actions/service';

export const serviceList = createReducer(on => {
  on(ServiceAction.fetchServiceBySearch);
}, []);
export const serviceListByMachine = createReducer(on => {
  on(ServiceAction.fetchServiceListByMachine);
}, []);
export const serviceListByApplication = createReducer(on => {
  on(ServiceAction.fetchServiceListByApplication);
}, []);
export const serviceById = createReducer(on => {
  on(ServiceAction.getServiceById);
}, []);
export const providerListByService = createReducer(on => {
  on(ServiceAction.fetchProviderListByService);
}, []);
export const consumerListByService = createReducer(on => {
  on(ServiceAction.fetchConsumerListByService);
}, []);
export const tracingListByService = createReducer(on => {
  on(ServiceAction.fetchTracingListByService);
}, []);
export const tracingDetailList = createReducer(on => {
  on(ServiceAction.fetchTracingDetailList);
}, []);
